﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>solcoo 数据统计</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<meta http-equiv="pragma" content="no-cache" />
    	<meta http-equiv="cache-control" content="no-cache" />
    	<meta http-equiv="expires" content="0" />
    	<meta http-equiv="keywords" content="keyword1, keyword2, keyword3" />
    	<meta http-equiv="description" content="solcoo 数据统计" />
    	<!-- css -->
    	<link type="text/css" rel="stylesheet" href="css/data.css" />
    	<!-- js -->
   		<script type="text/javascript" src="js/jquery-1.9.1.js" charset="UTF-8"></script>
   		<script type="text/javascript">
   			function reportPic(picName) {
   				$('#pic').empty().append('<img src="static/pic/report/data/' + picName + '" />');
   			}
   		</script>
	</head>
	<body>
		<div id="outter">
			<c:if test="${empty sessionScope.admin}">
				<jsp:forward page="" />
			</c:if>
			<div id="nav">
				<a href="javascript:void(0);"><span class="redTab">Solcoo 数据统计</span></a>&nbsp;&nbsp;
				<a href="shanghuData.jspDo">商户数据统计</a>&nbsp;&nbsp;
				<a href="shanghumxData.jspDo">商户明细统计</a>
			</div>
			<!-- 数据 -->
			<div id="data">
				<table>
					<caption> ${curYear} 年搜卡数据统计&nbsp;&nbsp;&nbsp;&nbsp;(总成交量: <span class="red">￥<fmt:formatNumber value="${totalSsk}" pattern="0.0"/></span>&nbsp;&nbsp;&nbsp;&nbsp;总用户数: <span class="red">${totalYongHuCount}人</span>&nbsp;&nbsp;&nbsp;&nbsp;总商户数量: <span class="red">${totalShangHuCount}人</span>)&nbsp;&nbsp;&nbsp;<a href="downloadToExcelByYongHu.jspDo">用户使用情况下载</a></caption>
					<tr>
						<td></td>
						<th>01月</th>
						<th>02月</th>
						<th>03月</th>
						<th>04月</th>
						<th>05月</th>
						<th>06月</th>
						<th>07月</th>
						<th>08月</th>
						<th>09月</th>
						<th>10月</th>
						<th>11月</th>
						<th>12月</th>
						<td></td>
					</tr>
					<tr class="tr1">
						<td class="label">成交量（实收款）</td>
						<c:forEach var="ssk" items="${ssks}">
							<td><fmt:formatNumber value="${ssk}" pattern="0.0"/></td>
						</c:forEach>
						<td>
							<a href="javascript:void(0);" onclick="reportPic('实收款折线图.jpg');">折线图</a>
						</td>
					</tr>
					<tr class="tr0">
						<td class="label">用户数量</td>
						<c:forEach var="yongHuCount" items="${yongHuCounts}">
							<td>${yongHuCount}</td>
						</c:forEach>
						<td>
							<a href="javascript:void(0);" onclick="reportPic('用户数折线图.jpg');">折线图</a>
						</td>
					</tr>
					<tr class="tr1">
						<td class="label">交易笔数</td>
						<c:forEach var="businessCount" items="${businessCounts}">
							<td>${businessCount}</td>
						</c:forEach>
						<td>
							<a href="javascript:void(0);" onclick="reportPic('交易笔数折线图.jpg');">折线图</a>
						</td>
					</tr>
					<tr class="tr0">
						<td class="label">发短信条数</td>
						<c:forEach var="messageCount" items="${messageCounts}">
							<td>${messageCount}</td>
						</c:forEach>
						<td>
							<a href="javascript:void(0);" onclick="reportPic('发短信条数折线图.jpg');">折线图</a>
						</td>
					</tr>
					<tr class="tr1">
						<td class="label">商户数量</td>
						<c:forEach var="merchantCount" items="${merchantCounts}">
							<td>${merchantCount}</td>
						</c:forEach>
						<td>
							<a href="javascript:void(0);" onclick="reportPic('商户数量折线图.jpg');">折线图</a>
						</td>
					</tr>
				</table>
			</div>
			<div>
				<br />
				<img src="static/pic/report/data/近30天日新增用户数量折线图.jpg" />
				<br />
				<img src="static/pic/report/data/近30天日实收款折线图.jpg" />
			</div>
			<div id="pic"></div>
		</div>
	</body>
</html>